import service from '@/utils/request'

export const useDeviceRenewRecorderApi = (id: number) => {
  return service.get('/gps/device_renew_recorder/' + id)
}

export const useDeviceRenewRecorderSubmitApi = (dataForm: any) => {
  if (dataForm.id) {
    return service.put('/gps/device_renew_recorder', dataForm)
  } else {
    return service.post('/gps/device_renew_recorder', dataForm)
  }
}
